package com.qianfeng.service;

import com.qianfeng.dto.Page;
import com.qianfeng.entity.Department;

import java.util.List;

public interface DepartmentService {
    /**
     * 增
     */
    void addDepartment(Department department);

    /**
     * 删
     */
    void deleteDepartment(Integer deptId);

    /**
     * 更新
     */
    void updateDepartment(Department department);

    /**
     * 查询列表
     */
    List<Department> getDepartmentList();

    /**
     * 分页
     */
    Page getDeptPage(Integer pageNo, Integer pageSize);

    /**
     * 根据Id查询部门
     */
    Department getDepartmentByDeptId(Integer deptId);
}
